<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/10/12
  Time: 10:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script>
    function change_show_one(o) {
        document.getElementById("show_cost").style.display = "block";
        document.getElementById("main").style.display = "none";
        var td = o.parentElement.parentElement.childNodes;
        for (var i = 0, pl = td.length; i < pl; i++) {
            var a = i + 1;
            var b = "" + a;
            if (i !== 10 && i !== 9) {
                document.getElementById(b).value = td[i].textContent;
            }
        }
        document.getElementById("10").innerHTML = td[10].textContent;
        switch (td[9].textContent) {
            case "1":
                document.getElementById("package").checked = "checked";
                break;
            case "2":
                document.getElementById("timeBased").checked = "checked";
                break;
            case "3":
                document.getElementById("monthly").checked = "checked";
                break;
        }
    }
</script>
<form action="" method="post" class="main_form" id="show_form_cost">
    <div class="text_info clearfix"><span>资费ID：</span></div>
    <div class="input_info"><input type="text" class="readonly" value=" " id="1"/></div>
    <div class="text_info clearfix">资费名称：</div>
    <div class="input_info"><input type="text" class="readonly" value=" " id="2"/></div>
    <div class="text_info clearfix">基本时长：</div>
    <div class="input_info"><input type="text" class="readonly" value=" " id="3"/></div>
    <div class="text_info clearfix">基本费用：</div>
    <div class="input_info"><input type="text" class="readonly" value=" " id="4"/></div>
    <div class="text_info clearfix">单位费用：</div>
    <div class="input_info"><input type="text" class="readonly" value=" " id="5"/></div>
    <div class="text_info clearfix">创建时间：</div>
    <div class="input_info"><input type="text" class="readonly" value=" " id="6"/></div>
    <div class="text_info clearfix">开通时间：</div>
    <div class="input_info"><input type="text" class="readonly" value=" " id="7"/></div>
    <div class="text_info clearfix">资费状态：</div>
    <div class="input_info"><input type="text" class="readonly" value=" " id="8"/></div>
    <div class="text_info clearfix">资费类型：</div>
    <div class="input_info fee_type" id="9">
        <input type="radio" name="radFeeType" id="monthly" disabled="disabled"/>
        <label for="monthly">包月</label>
        <input type="radio" name="radFeeType" id="package" disabled="disabled"/>
        <label for="package">套餐</label>
        <input type="radio" name="radFeeType" id="timeBased" disabled="disabled"/>
        <label for="timeBased">计时</label>
    </div>
    <div class="text_info clearfix">资费说明：</div>
    <div class="input_info fee_type">
        <textarea class="width300 height35 readonly" readonly id="10"></textarea>
    </div>

    <div class="button_info clearfix">
        <input type="button" value="返回" class="btn_save" onclick="change_back()"/>
    </div>
</form>

